package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 第五组
 * @since 2022-09-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_bottom_article")
@ApiModel(value = "BottomArticle对象", description = "")
public class BottomArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("首页管理主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("导航名称")
    private String name;

    @ApiModelProperty("启用状态")
    @TableField(fill = FieldFill.INSERT)
    private String isDisable;

    @ApiModelProperty("逻辑删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("父类id")
    private String parentId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @TableField(exist=false)    //表示此属性不是数据库中的列。
    private List<BottomArticle> children;
}
